//
//  TargetType.swift
//

import Alamofire

public protocol TargetType {
    var baseURL: String { get }
    var path: String { get }
    var method: HTTPMethod { get }
    var parameters: [String: Any] { get }
    var encoding: ParameterEncoding { get }
    var headers: HTTPHeaders? { get }
}

extension TargetType {
    
    func request() -> NetworkManager {
        return NetworkManager.share.request(self)
    }
}
//extension TargetType {
//
//    func request() -> ZMRequestManager {
//        return ZMRequestManager.default.request(self)
//    }
//}
